package kotlinquanweizhinan.chapt06.感叹号操作符

class Tavern {
}

fun main() {
//    var signatureDrink = "Buttered Ale"
//    signatureDrink = null

    /**   !!.
     *"beverage 变量是否为null我不管，请做大小写转换！” 如果beverage变量值真的为null,
     * 就会抛出KotlinNull-PointerException.
     */
    var beverage = readLine()!!.capitalize()
//    beverage = null
    println(beverage)
}